public class Anim_nbrs {
	int[][][] NBH;
	
	public Anim_nbrs(int countNbr) {

		//Toggleframe input, conway neighbourhood default
		NBH = new int[][][] {
			{
				{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-3,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0}
			},{
				{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-3,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0}
			},{
				{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-3,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0}
			},{
				{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0},{3,-3,0}
			},{
				{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0},{3,-2,0}
			},{
				{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0},{3,-1,0}
			},{
				{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0},{3,0,0}
			},{
				{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0},{3,1,0}
			},{
				{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0},{3,2,0}
			},{
				{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0},{3,3,0}
			},{
				{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0},{2,3,0}
			},{
				{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{1,3,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0}
			},{
				{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{0,3,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0}
			},{
				{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{-1,3,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0}
			},{
				{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-2,3,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0}
			},{
				{-3,3,0},{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0}
			},{
				{-3,2,0},{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0}
			},{
				{-3,1,0},{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0}
			},{
				{-3,0,0},{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0}
			},{
				{-3,-1,0},{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0}
			},{
				{-3,-2,0},{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0}
			},{
				{-3,-3,0},{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0}
			},{
				{-2,-3,0},{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0}
			},{
				{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-3,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0}
			}
		};
		
		
	}
	
	//called to define a neighbour's position (x,y,z,neighbour id)
	public void setNBH(int xx, int yy, int zz, int nbr, int frame) {
		NBH[frame][nbr][0] = xx;
		NBH[frame][nbr][1] = yy;
		NBH[frame][nbr][2] = zz;
	}

}


/*



//Toggleframe input, conway neighbourhood default
		NBH = new int[][][] {
			{
			
				{-1,2,0},{-1,3,0},{-1,4,0},{0,2,0},{0,4,0},{1,2,0},{1,3,0},{1,4,0}
			},{
				{-2,2,0},{-2,3,0},{-2,4,0},{-1,2,0},{-1,4,0},{0,2,0},{0,3,0},{0,4,0}
			},{
				{-3,2,0},{-3,3,0},{-3,4,0},{-2,2,0},{-2,4,0},{-1,2,0},{-1,3,0},{-1,4,0}
			},{
				{-4,2,0},{-4,3,0},{-4,4,0},{-3,2,0},{-3,4,0},{-2,2,0},{-2,3,0},{-2,4,0}
			},{
				{-4,1,0},{-4,2,0},{-4,3,0},{-3,1,0},{-3,3,0},{-2,1,0},{-2,2,0},{-2,3,0}
			},{
				{-4,0,0},{-4,1,0},{-4,2,0},{-3,0,0},{-3,2,0},{-2,0,0},{-2,1,0},{-2,2,0}
			},{
				{-4,-1,0},{-4,0,0},{-4,1,0},{-3,-1,0},{-3,1,0},{-2,-1,0},{-2,0,0},{-2,1,0}
			},{
				{-4,-2,0},{-4,-1,0},{-4,0,0},{-3,-2,0},{-3,0,0},{-2,-2,0},{-2,-1,0},{-2,0,0}
			},{
				{-4,-3,0},{-4,-2,0},{-4,-1,0},{-3,-3,0},{-3,-1,0},{-2,-3,0},{-2,-2,0},{-2,-1,0}
			},{
				{-4,-4,0},{-4,-3,0},{-4,-2,0},{-3,-4,0},{-3,-2,0},{-2,-4,0},{-2,-3,0},{-2,-2,0}
			},{
				{-3,-4,0},{-3,-3,0},{-3,-2,0},{-2,-4,0},{-2,-2,0},{-1,-4,0},{-1,-3,0},{-1,-2,0}
			},{
				{-2,-4,0},{-2,-3,0},{-2,-2,0},{-1,-4,0},{-1,-2,0},{0,-4,0},{0,-3,0},{0,-2,0}
			},{
				{-1,-4,0},{-1,-3,0},{-1,-2,0},{0,-4,0},{0,-2,0},{1,-4,0},{1,-3,0},{1,-2,0}
			},{
				{0,-4,0},{0,-3,0},{0,-2,0},{1,-4,0},{1,-2,0},{2,-4,0},{2,-3,0},{2,-2,0}
			},{
				{1,-4,0},{1,-3,0},{1,-2,0},{2,-4,0},{2,-2,0},{3,-4,0},{3,-3,0},{3,-2,0}
			},{
				{2,-4,0},{2,-3,0},{2,-2,0},{3,-4,0},{3,-2,0},{4,-4,0},{4,-3,0},{4,-2,0}
			},{
				{2,-3,0},{2,-2,0},{2,-1,0},{3,-3,0},{3,-1,0},{4,-3,0},{4,-2,0},{4,-1,0}
			},{
				{2,-2,0},{2,-1,0},{2,0,0},{3,-2,0},{3,0,0},{4,-2,0},{4,-1,0},{4,0,0}
			},{
				{2,-1,0},{2,0,0},{2,1,0},{3,-1,0},{3,1,0},{4,-1,0},{4,0,0},{4,1,0}
			},{
				{2,0,0},{2,1,0},{2,2,0},{3,0,0},{3,2,0},{4,0,0},{4,1,0},{4,2,0}
			},{
				{2,1,0},{2,2,0},{2,3,0},{3,1,0},{3,3,0},{4,1,0},{4,2,0},{4,3,0}
			},{
				{2,2,0},{2,3,0},{2,4,0},{3,2,0},{3,4,0},{4,2,0},{4,3,0},{4,4,0}
			},{
				{1,2,0},{1,3,0},{1,4,0},{2,2,0},{2,4,0},{3,2,0},{3,3,0},{3,4,0}
			},{
				{0,2,0},{0,3,0},{0,4,0},{1,2,0},{1,4,0},{2,2,0},{2,3,0},{2,4,0}
			}
		};




NBH = new int[][][] { //three cells orbit a square
			{
				{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-4,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-4,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-4,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0}
			},{
				{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-4,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-4,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-4,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0}
			},{
				{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-4,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-4,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0},{3,-4,0}
			},{
				{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-4,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0},{3,-4,0},{4,-4,0}
			},{
				{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0},{3,-4,0},{4,-4,0},{4,-3,0}
			},{
				{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0},{4,-4,0},{4,-3,0},{4,-2,0}
			},{
				{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0},{4,-3,0},{4,-2,0},{4,-1,0}
			},{
				{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0},{4,-2,0},{4,-1,0},{4,0,0}
			},{
				{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0},{4,-1,0},{4,0,0},{4,1,0}
			},{
				{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0},{4,0,0},{4,1,0},{4,2,0}
			},{
				{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0},{4,1,0},{4,2,0},{4,3,0}
			},{
				{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0},{4,2,0},{4,3,0},{4,4,0}
			},{
				{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0},{3,4,0},{4,3,0},{4,4,0}
			},{
				{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0},{2,4,0},{3,4,0},{4,4,0}
			},{
				{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{1,4,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0},{2,4,0},{3,4,0}
			},{
				{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{0,4,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{1,4,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0},{2,4,0}
			},{
				{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{-1,4,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{0,4,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{1,4,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0}
			},{
				{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-2,4,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{-1,4,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{0,4,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0}
			},{
				{-3,4,0},{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-2,4,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{-1,4,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0}
			},{
				{-4,4,0},{-3,4,0},{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-2,4,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0}
			},{
				{-4,3,0},{-4,4,0},{-3,4,0},{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0}
			},{
				{-4,2,0},{-4,3,0},{-4,4,0},{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0}
			},{
				{-4,1,0},{-4,2,0},{-4,3,0},{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0}
			},{
				{-4,0,0},{-4,1,0},{-4,2,0},{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0}
			},{
				{-4,-1,0},{-4,0,0},{-4,1,0},{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0}
			},{
				{-4,-2,0},{-4,-1,0},{-4,0,0},{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0}
			},{
				{-4,-3,0},{-4,-2,0},{-4,-1,0},{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0}
			},{
				{-4,-4,0},{-4,-3,0},{-4,-2,0},{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0}
			},{
				{-4,-4,0},{-4,-3,0},{-3,-4,0},{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0}
			},{
				{-4,-4,0},{-3,-4,0},{-2,-4,0},{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0}
			},{
				{-3,-4,0},{-2,-4,0},{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-4,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0}
			},{
				{-2,-4,0},{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-4,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-4,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0}
			}
		};

NBH = new int[][][] { //cgol, 4 orbiters
			{
				{-3,0,0},{-1,-1,0},{-1,0,0},{-1,1,0},{0,-3,0},{0,-1,0},{0,1,0},{0,3,0},{1,-1,0},{1,0,0},{1,1,0},{3,0,0}
			},{
				{-3,-1,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,3,0},{0,-1,0},{0,1,0},{1,-3,0},{1,-1,0},{1,0,0},{1,1,0},{3,1,0}
			},{
				{-3,-2,0},{-2,3,0},{-1,-1,0},{-1,0,0},{-1,1,0},{0,-1,0},{0,1,0},{1,-1,0},{1,0,0},{1,1,0},{2,-3,0},{3,2,0}
			},{
				{-3,-3,0},{-3,3,0},{-1,-1,0},{-1,0,0},{-1,1,0},{0,-1,0},{0,1,0},{1,-1,0},{1,0,0},{1,1,0},{3,-3,0},{3,3,0}
			},{
				{-3,2,0},{-2,-3,0},{-1,-1,0},{-1,0,0},{-1,1,0},{0,-1,0},{0,1,0},{1,-1,0},{1,0,0},{1,1,0},{2,3,0},{3,-2,0}
			},{
				{-3,1,0},{-1,-3,0},{-1,-1,0},{-1,0,0},{-1,1,0},{0,-1,0},{0,1,0},{1,-1,0},{1,0,0},{1,1,0},{1,3,0},{3,-1,0}
			}
		};


NBH = new int[][][] { origin rotation inside
			{
			
				{-3,1,0},{-3,2,0},{-3,3,0},{-2,0,0},{-2,1,0},{-2,2,0},{-2,3,0},{-2,4,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{-1,3,0},{-1,4,0},{-1,5,0},{0,-1,0},{0,1,0},{0,2,0},{0,3,0},{0,4,0},{0,5,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{1,3,0},{1,4,0},{1,5,0},{2,0,0},{2,1,0},{2,2,0},{2,3,0},{2,4,0},{3,1,0},{3,2,0},{3,3,0}
			},{
				{-4,1,0},{-4,2,0},{-4,3,0},{-3,0,0},{-3,1,0},{-3,2,0},{-3,3,0},{-3,4,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-2,3,0},{-2,4,0},{-2,5,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{-1,3,0},{-1,4,0},{-1,5,0},{0,-1,0},{0,1,0},{0,2,0},{0,3,0},{0,4,0},{0,5,0},{1,0,0},{1,1,0},{1,2,0},{1,3,0},{1,4,0},{2,1,0},{2,2,0},{2,3,0}
			},{
				{-5,0,0},{-5,1,0},{-5,2,0},{-4,-1,0},{-4,0,0},{-4,1,0},{-4,2,0},{-4,3,0},{-3,-2,0},{-3,-1,0},{-3,0,0},{-3,1,0},{-3,2,0},{-3,3,0},{-3,4,0},{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-2,3,0},{-2,4,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{-1,3,0},{-1,4,0},{0,-1,0},{0,1,0},{0,2,0},{0,3,0},{1,0,0},{1,1,0},{1,2,0}
			},{
				{-5,-1,0},{-5,0,0},{-5,1,0},{-4,-2,0},{-4,-1,0},{-4,0,0},{-4,1,0},{-4,2,0},{-3,-3,0},{-3,-2,0},{-3,-1,0},{-3,0,0},{-3,1,0},{-3,2,0},{-3,3,0},{-2,-3,0},{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-2,3,0},{-1,-3,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{-1,3,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-1,0},{1,0,0},{1,1,0}
			},{
				{-5,-2,0},{-5,-1,0},{-5,0,0},{-4,-3,0},{-4,-2,0},{-4,-1,0},{-4,0,0},{-4,1,0},{-3,-4,0},{-3,-3,0},{-3,-2,0},{-3,-1,0},{-3,0,0},{-3,1,0},{-3,2,0},{-2,-4,0},{-2,-3,0},{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-2,2,0},{-1,-4,0},{-1,-3,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{-1,2,0},{0,-3,0},{0,-2,0},{0,-1,0},{0,1,0},{1,-2,0},{1,-1,0},{1,0,0}
			},{
				{-4,-3,0},{-4,-2,0},{-4,-1,0},{-3,-4,0},{-3,-3,0},{-3,-2,0},{-3,-1,0},{-3,0,0},{-2,-5,0},{-2,-4,0},{-2,-3,0},{-2,-2,0},{-2,-1,0},{-2,0,0},{-2,1,0},{-1,-5,0},{-1,-4,0},{-1,-3,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{0,-5,0},{0,-4,0},{0,-3,0},{0,-2,0},{0,-1,0},{0,1,0},{1,-4,0},{1,-3,0},{1,-2,0},{1,-1,0},{1,0,0},{2,-3,0},{2,-2,0},{2,-1,0}
			},{
				{-3,-3,0},{-3,-2,0},{-3,-1,0},{-2,-4,0},{-2,-3,0},{-2,-2,0},{-2,-1,0},{-2,0,0},{-1,-5,0},{-1,-4,0},{-1,-3,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{-1,1,0},{0,-5,0},{0,-4,0},{0,-3,0},{0,-2,0},{0,-1,0},{0,1,0},{1,-5,0},{1,-4,0},{1,-3,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{2,-4,0},{2,-3,0},{2,-2,0},{2,-1,0},{2,0,0},{3,-3,0},{3,-2,0},{3,-1,0}
			},{
				{-2,-3,0},{-2,-2,0},{-2,-1,0},{-1,-4,0},{-1,-3,0},{-1,-2,0},{-1,-1,0},{-1,0,0},{0,-5,0},{0,-4,0},{0,-3,0},{0,-2,0},{0,-1,0},{0,1,0},{1,-5,0},{1,-4,0},{1,-3,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{2,-5,0},{2,-4,0},{2,-3,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{3,-4,0},{3,-3,0},{3,-2,0},{3,-1,0},{3,0,0},{4,-3,0},{4,-2,0},{4,-1,0}
			},{
				{-1,-2,0},{-1,-1,0},{-1,0,0},{0,-3,0},{0,-2,0},{0,-1,0},{0,1,0},{1,-4,0},{1,-3,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{2,-4,0},{2,-3,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0},{3,-4,0},{3,-3,0},{3,-2,0},{3,-1,0},{3,0,0},{3,1,0},{3,2,0},{4,-3,0},{4,-2,0},{4,-1,0},{4,0,0},{4,1,0},{5,-2,0},{5,-1,0},{5,0,0}
			},{
				{-1,-1,0},{-1,0,0},{-1,1,0},{0,-2,0},{0,-1,0},{0,1,0},{0,2,0},{1,-3,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{1,3,0},{2,-3,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0},{2,3,0},{3,-3,0},{3,-2,0},{3,-1,0},{3,0,0},{3,1,0},{3,2,0},{3,3,0},{4,-2,0},{4,-1,0},{4,0,0},{4,1,0},{4,2,0},{5,-1,0},{5,0,0},{5,1,0}
			},{
				{-1,0,0},{-1,1,0},{-1,2,0},{0,-1,0},{0,1,0},{0,2,0},{0,3,0},{1,-2,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{1,3,0},{1,4,0},{2,-2,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0},{2,3,0},{2,4,0},{3,-2,0},{3,-1,0},{3,0,0},{3,1,0},{3,2,0},{3,3,0},{3,4,0},{4,-1,0},{4,0,0},{4,1,0},{4,2,0},{4,3,0},{5,0,0},{5,1,0},{5,2,0}
			},{
				{-2,1,0},{-2,2,0},{-2,3,0},{-1,0,0},{-1,1,0},{-1,2,0},{-1,3,0},{-1,4,0},{0,-1,0},{0,1,0},{0,2,0},{0,3,0},{0,4,0},{0,5,0},{1,-1,0},{1,0,0},{1,1,0},{1,2,0},{1,3,0},{1,4,0},{1,5,0},{2,-1,0},{2,0,0},{2,1,0},{2,2,0},{2,3,0},{2,4,0},{2,5,0},{3,0,0},{3,1,0},{3,2,0},{3,3,0},{3,4,0},{4,1,0},{4,2,0},{4,3,0}

			}
		};











/**/